package com.apex.lottery.service;

import com.apex.lottery.controller.param.UserLoginParam;
import com.apex.lottery.controller.param.UserPasswordLoginParam;
import com.apex.lottery.controller.param.UserRegisterParam;
import com.apex.lottery.service.dto.UserDTO;
import com.apex.lottery.service.dto.UserLoginDTO;
import com.apex.lottery.service.dto.UserServiceDTO;
import com.apex.lottery.service.enums.UserIdentityEnum;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName UserService
 * @Description TODO
 * @Author ZJX
 * @Date 2024/9/23 15:58
 * @Version 1.0
 */
@Service
public interface UserService {
//    注册
    UserServiceDTO register(UserRegisterParam param);

    /**
     * 用户登录
     *   1、 密码
     *   2、 验证码
     *
     * @param param
     * @return
     */
    UserLoginDTO login(UserLoginParam param);

    /**
     * 根据身份查询用户信息
     *
     * @param identity  如果为空，则查询所有用户信息
     * @return
     */
    List<UserDTO> findUserInfo(UserIdentityEnum identity);
}
